public class Derived extends Base{
    int a = 101;
    int b = 102;
    int c = 103;
    public Derived(){
        System.out.println("Derved()");
    }
    public void methodB(){
        System.out.println("Derived中的methodB()");
    }
    public void methodA(int a){
        System.out.println("Derived中的methodA(int)方法");
    }
    public void methodC(){
        methodB();
        methodA(20);
        methodA();
        System.out.println(this.a);
        System.out.println(super.a);
        System.out.println(this.b);
        System.out.println(super.b);
        this.methodB();
        super.methodB();

    }
    public static void main(String[] args){
        Derived d = new Derived();
        d.methodC();
    }

}
